package com.py.custom.tms.application.jvm.classload;

import java.util.concurrent.ThreadLocalRandom;

public class MyTest8 {

    public static void main(String[] args) throws Exception {
        Class<?> clazz = Class.forName("com.py.custom.tms.application.jvm.classload.C");
        ClassLoader loader = clazz.getClassLoader();
        System.out.println(loader);

        System.out.println("--------");
        System.out.println(FinalTest.x);
    }
}

class C {

}

class FinalTest {

    // public static final int x = 3;

    public static final int x = ThreadLocalRandom.current().nextInt(3);

    // public static int x = 3;

    static {
        System.out.println("FinalTest static block");
    }
}
